package com.oes.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author liyutg
 * @create 21:06 2018/5/22
 * @desc ${DESCRIPTION}
 * @Modified By:
 **/
@Controller
public class HelloController {

//    @RequestMapping("/getMes")
//    public Map<String, String> getMes(){
//        Map<String, String> map=new HashMap<>();
//        map.put("message","你好");
//        return map;
//    }

    @RequestMapping("/index.html")
    public String toIndex(){
        return "index";
    }

    @RequestMapping(value = "/login/right",method = RequestMethod.GET)
    public String toLogin(){
        return "course";
    }

    @RequestMapping("/hello1")



    public String hello1() {
        return "Hello World";
    }


}
